package com.yxy.mapper;

import com.yxy.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;


@Mapper
@Component
public interface EmployeeMapper {

    List<Employee> employeelist();

    Employee getEmpById(Integer id);

    void addEmp(Employee employee);

    void updateEmp(Employee employee);

    void deleteEmp(Integer id);

    List<Employee> getEmpByName(String lastName);
}
